package com.maket.scxx.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.maket.scxx.mapper.WlMaterialsAndMesBomMapper;
import com.maket.scxx.domain.WlMaterialsAndMesBom;
import com.maket.scxx.service.IWlMaterialsAndMesBomService;

/**
 * 物料与BOMService业务层处理
 * 
 * @author ruoyi
 * @date 2024-07-01
 */
@Service
public class WlMaterialsAndMesBomServiceImpl implements IWlMaterialsAndMesBomService 
{
    @Autowired
    private WlMaterialsAndMesBomMapper wlMaterialsAndMesBomMapper;

    /**
     * 查询物料与BOM
     * 
     * @param wId 物料与BOM主键
     * @return 物料与BOM
     */
    @Override
    public WlMaterialsAndMesBom selectWlMaterialsAndMesBomByWId(Long wId)
    {
        return wlMaterialsAndMesBomMapper.selectWlMaterialsAndMesBomByWId(wId);
    }

    /**
     * 查询物料与BOM列表
     * 
     * @param wlMaterialsAndMesBom 物料与BOM
     * @return 物料与BOM
     */
    @Override
    public List<WlMaterialsAndMesBom> selectWlMaterialsAndMesBomList(WlMaterialsAndMesBom wlMaterialsAndMesBom)
    {
        return wlMaterialsAndMesBomMapper.selectWlMaterialsAndMesBomList(wlMaterialsAndMesBom);
    }

    /**
     * 新增物料与BOM
     * 
     * @param wlMaterialsAndMesBom 物料与BOM
     * @return 结果
     */
    @Override
    public int insertWlMaterialsAndMesBom(WlMaterialsAndMesBom wlMaterialsAndMesBom)
    {
        return wlMaterialsAndMesBomMapper.insertWlMaterialsAndMesBom(wlMaterialsAndMesBom);
    }

    /**
     * 修改物料与BOM
     * 
     * @param wlMaterialsAndMesBom 物料与BOM
     * @return 结果
     */
    @Override
    public int updateWlMaterialsAndMesBom(WlMaterialsAndMesBom wlMaterialsAndMesBom)
    {
        return wlMaterialsAndMesBomMapper.updateWlMaterialsAndMesBom(wlMaterialsAndMesBom);
    }

    /**
     * 批量删除物料与BOM
     * 
     * @param wIds 需要删除的物料与BOM主键
     * @return 结果
     */
    @Override
    public int deleteWlMaterialsAndMesBomByWIds(Long[] wIds)
    {
        return wlMaterialsAndMesBomMapper.deleteWlMaterialsAndMesBomByWIds(wIds);
    }

    /**
     * 删除物料与BOM信息
     * 
     * @param wId 物料与BOM主键
     * @return 结果
     */
    @Override
    public int deleteWlMaterialsAndMesBomByWId(Long wId)
    {
        return wlMaterialsAndMesBomMapper.deleteWlMaterialsAndMesBomByWId(wId);
    }
}
